﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;


namespace PBDesk.com.Extension.Articles
{
    public class OAuthor
    {
        public string Name { get; set; }
        public string Desc { get; set; }
        public string Email { get; set; }
        public string Twitter { get; set; }
        public string Facebook { get; set; }
        public string GooglePlus { get; set; }
        public string LinkWebsite { get; set; }
        public string LinkBlog { get; set; }
        public string Link3 { get; set; }

        public List<OImage> Images { get; set; }

        public OAuthor()
        {
            Images = new List<OImage>();
        }

        public OAuthor(dynamic author)
        {
            if (author != null)
            {
                this.Name = author.authorName;
                this.Desc = author.authorDesc;
                this.Email = author.authorEmail;
                this.LinkWebsite = author.linkWebsite;
                this.Link3 = author.authorLink3;
                this.LinkBlog = author.linkBlogs;
                this.Twitter = author.twitterHandle;
                this.Facebook = author.facebookLink;
                this.GooglePlus = author.googlePlusLink;
            }
            Images = new List<OImage>();
            
        }
       

       
    }
}